#ifndef PLUGINEXCEPTION_H_
#define PLUGINEXCEPTION_H_

#include <exception>
#include <string>

namespace PluginSystem
{
	class PluginException : public std::exception
	{
		public:
			
			PluginException()
			{
				myMessage = "PluginException: Unsuported or demaged plugin";
			}
			
			PluginException(std::string theMessage)
			{
				myMessage = "PluginException" + theMessage;
			}

			~PluginException () throw() {}

			virtual const char* what() const throw()
			{
				return myMessage.c_str();
			}

		private:
			std::string myMessage;

	};//PluginException

}//PluginSystem

#endif //PLUGINEXCEPTION_H_